package com.foreverwin.jzymes.production.program.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.production.program.mapper.ProgramActionLogMapper;
import com.foreverwin.jzymes.production.program.domain.ProgramActionLog;
import com.foreverwin.jzymes.production.program.service.IProgramActionLogService;

/**
 * CNC程式上传下载记录 服务层实现
 * 
 * @author ervin
 * @date 2019-07-17
 */
@Service
public class ProgramActionLogServiceImpl implements IProgramActionLogService
{
	@Autowired
	private ProgramActionLogMapper programActionLogMapper;

	/**
     * 查询CNC程式上传下载记录信息
     * 
     * @param handle CNC程式上传下载记录ID
     * @return CNC程式上传下载记录信息
     */
    @Override
	public ProgramActionLog selectProgramActionLogById(String handle)
	{
	    return programActionLogMapper.selectProgramActionLogById(handle);
	}
	
	/**
     * 查询CNC程式上传下载记录列表
     * 
     * @param programActionLog CNC程式上传下载记录信息
     * @return CNC程式上传下载记录集合
     */
	@Override
	public List<ProgramActionLog> selectProgramActionLogList(ProgramActionLog programActionLog)
	{
	    return programActionLogMapper.selectProgramActionLogList(programActionLog);
	}
	
    /**
     * 新增CNC程式上传下载记录
     * 
     * @param programActionLog CNC程式上传下载记录信息
     * @return 结果
     */
	@Override
	public int insertProgramActionLog(ProgramActionLog programActionLog)
	{
	    return programActionLogMapper.insertProgramActionLog(programActionLog);
	}
	
	/**
     * 修改CNC程式上传下载记录
     * 
     * @param programActionLog CNC程式上传下载记录信息
     * @return 结果
     */
	@Override
	public int updateProgramActionLog(ProgramActionLog programActionLog)
	{
	    return programActionLogMapper.updateProgramActionLog(programActionLog);
	}

	/**
     * 删除CNC程式上传下载记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteProgramActionLogByIds(String ids)
	{
		return programActionLogMapper.deleteProgramActionLogByIds(ids.split(","));
	}
	
}
